//
//  RecommendsModel.m
//  test1
//
//  Created by chen on 16/11/1.
//  Copyright © 2016年 chen. All rights reserved.
//

#import "RecommendsModel.h"

@implementation RecommendsModel

+ recommendsModelWithDict:(NSDictionary *)dict{
    id obj = [[self alloc] init];
    
    [obj setValuesForKeysWithDictionary:dict];
    
    return obj;
}

-(void)setValue:(id)value forKey:(NSString *)key {
    
    if ([key isEqualToString:@"startutc"]) {
        NSString *newValue = [value substringToIndex:10];
        [super setValue:newValue forKey:@"startutc"];
    }
    if ([key isEqualToString:@"endutc"]) {
        NSString *newValue = [value substringToIndex:10];
        [super setValue:newValue forKey:@"endutc"];
    }
    [super setValue:value forKey:key];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key {}

@end
